import React from "react";
import { Input } from "@bill_law6/formily-shadcn/components/Input";
import { Checkbox } from "@bill_law6/formily-shadcn/components/Checkbox";

export {
  Form,
  Field,
  Input,
  Button,
  Checkbox,
  Switch,
} from "@bill_law6/formily-shadcn/components";

// Re-export some components from the main components directory that don't exist in shadcn
export {
  Text,
  Card,
  Space,
  ObjectContainer,
  Submit,
} from "./components";

// Create placeholder components for missing shadcn components
export const Select = Input;
export const TreeSelect = Input;
export const Cascader = Input;
export const Radio = Checkbox;
export const Slider = Input;
export const Rate = Input;
export const NumberPicker = Input;
export const Transfer = Input;
export const Password = Input;
export const DatePicker = Input;
export const TimePicker = Input;
export const Upload = Input;
export const ArrayCards = ({ children, ...props }: any) => <div {...props}>{children}</div>;
export const ArrayTable = ({ children, ...props }: any) => <div {...props}>{children}</div>;
export const FormTab = ({ children, ...props }: any) => <div {...props}>{children}</div>;
export const FormCollapse = ({ children, ...props }: any) => <div {...props}>{children}</div>;
export const FormLayout = ({ children, ...props }: any) => <div {...props}>{children}</div>;
export const FormGrid = ({ children, ...props }: any) => <div {...props}>{children}</div>;